package com.example.myerp.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("myerp-purchase")
public interface PurchaseService {
    @RequestMapping("/purchase/s_cell_fp/product_one_Add")
    public Integer Product_one_Add(@RequestParam("oneId") String oneId, @RequestParam("preName") String preName);

    @RequestMapping("/purchase/s_cell_fp/product_second_Add")
    public Integer product_second_Add(@RequestParam("oneId") String oneId,
                                      @RequestParam("secondId") String secondId,
                                      @RequestParam("secondName") String secondName);

    @RequestMapping("/purchase/s_cell_fp/product_three_Add")
    public Integer product_three_Add(@RequestParam("threeId")String threeId,
                                     @RequestParam("thirdproName")String thirdproName,
                                     @RequestParam("twoId")String  twoId);
}
